package com.users.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

//name 调用rest接口所对应的服务名，
//path 指定调用rest接口所在controller中的@RequestingMapping
@FeignClient(name="emms-order-service", path = "orders")
public interface OrderFeignService {

    @RequestMapping("/all")
    String findAll();

}
